package cn.yangyumanage.application;

import android.app.Application;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;


public class DataApplication extends Application {

    private static DataApplication mApp;
    //数据是否为最新
    public static Boolean dataFlag = true;
    //分类和画质数据是否为最新
    public static Boolean classificationAndImageQualityFlag = true;
    //标签分配数据更新
    public static Boolean tagAllocationFlag = true;
    public static Boolean passLeaveMessageFlag = true;
    public static Boolean notPassLeaveMessageFlag = true;

    public static Gson gson = new GsonBuilder().serializeNulls().create();

    public static DataApplication getInstance() {
        return mApp;
    }

    //token
    public static String token;

    //在App启动时调用
    @Override
    public void onCreate() {
        super.onCreate();
        mApp = this;
    }
}
